using UnityEngine;
using UnityEngine.UI;

public class GameUI : BasePanel
{
    [SerializeField] Button btnSetting;
    void Start()
    {
        btnSetting.onClick.AddListener(() =>
        {
            UIMgr.Instance.ShowPanel<SettingPanel>();
        });
        EventCenter.Instance.AddEventListener(E_EventType.BeginScene_btn_exitSetting, ExitSetting);
    }
    public override void Init()
    {
    }
    public void ExitSetting()
    {
        UIMgr.Instance.HidePanel<SettingPanel>();
    }
}
